/**
 * Potvrzeni vymazu zaznamu, docasne zvyrazneni radku.
 * @param rowId
 * @returns {Boolean}
 */
function deleteRow(rowId) {
	var pokracovat = false;
	var obj = document.getElementById("row"+rowId);
	var classVar = obj.className;
	obj.className += " rowToDelete";
	pokracovat = confirm("Smazat?");
	obj.className = classVar;
	
	if ( pokracovat )  {
		return true;
	}
	else {
	    return false;
	}
}

/**
 * Vyvolani funkce pro filtrovani kapel.
 */
function submitFiltrForm() {
	document.forms["form"].submit();
}

/**
 * Nastaveni focusu na filtr.
 */
function setFocus() {
	var input = document.getElementById("form")["name"];
	input.focus();
	input.value=input.value;
}

/**
 * Prohlizeni z filtru.
 */
function browse() {
	var select = document.getElementById("bandsSelect");
	var idBand = select[select.selectedIndex].value;
	window.location.href='browse?id='+idBand;
}

/**
 * Prohlizeni z filtru.
 */
function edit() {
	var select = document.getElementById("bandsSelect");
	var idBand = select[select.selectedIndex].value;
	window.location.href='edit?id='+idBand;
}

